package org.lvgo.factory.simple;

/**
 * 汽车工厂生产测试
 *
 * @author lvgo
 * @version 1.0
 * @date 18-8-24 下午5:01
 */
public class SimpleFactoryTest {

    public static void main(String[] args) {
        Car audi = CarFactory.getCar(CarBrand.Audi);
        audi.run();
        Car bwm = CarFactory.getCar(CarBrand.BWM);
        bwm.run();
        Car mercedes = CarFactory.getCar(CarBrand.Mercedes);
        mercedes.run();
    }
}
